package client;

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.net.InetAddress;
import java.net.Socket;
import java.net.UnknownHostException;

public class Connect {
	Socket client;
    BufferedReader br;
    PrintWriter pw;
    String result_text;
	
	public Connect(){
		try {
			client = new Socket(InetAddress.getLocalHost(), 8000);

			Client c = new Client(client);
			new Thread(c).start();
	        
		} catch (UnknownHostException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
	}
	
	public static void main(String[] args){

		new Connect();

    }
}
